package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.SystemNotice;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SystemNoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insertAll(SystemNotice record);

    SystemNotice selectByPrimaryKey(Long id);

    List<SystemNotice> selectAll();

    int updateByPrimaryKey(SystemNotice record);

    List<SystemNotice> selectSystemNotice(Long userId);

    Integer selectNoticeNumber(Long userId);

    void updateNoticeState(@Param("array")Long[] array);
}